<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'gameTableReport.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script>
		function toFind(id){
			document.all('dateNum').value=id;
			document.all('agentId').value=1;
			document.all('form').submit();
		}
	</script>

  </head>
  
  <body>
  	<form action="/newbingo/test/AgentReport_findMemberReport.action" name="form">
  		<input type="hidden" name="dateNum"><input type="hidden" name="agentId">
  		<input value="本周" type="button" onclick="toFind(1)" />&nbsp;&nbsp;&nbsp;&nbsp;
  		<input value="本月" type="button" onclick="toFind(2)"  />&nbsp;&nbsp;&nbsp;&nbsp;
  		<input value="本季度" type="button" onclick="toFind(3)"  />&nbsp;&nbsp;&nbsp;&nbsp;
  		<input value="当年" type="button" onclick="toFind(4)"  />&nbsp;&nbsp;&nbsp;&nbsp;
   	</form>
  	<table align="center">
  		<tr>
  			<th>会员名</th>
  			<th>真实姓名</th>
  			<th>投注总额</th>
  			<th>输赢总额</th>
  			<th>返利总额</th>
  		</tr>
    <s:iterator value="pager.data">
    	<tr>
    		<td>${uname }</td>
    		<td>${trueName }</td>
    		<td>${sumAmount }</td>
    		<td>${sumBetResult }</td>
    		<td>${sumRebate }</td>
    	</tr>
    </s:iterator>
    
    </table>
  </body>
</html>
